
book-01:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400648 <_init>:
  400648:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40064c:	910003fd 	mov	x29, sp
  400650:	9400004a 	bl	400778 <call_weak_fn>
  400654:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400658:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400660 <.plt>:
  400660:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400664:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf5f0>
  400668:	f947fe11 	ldr	x17, [x16, #4088]
  40066c:	913fe210 	add	x16, x16, #0xff8
  400670:	d61f0220 	br	x17
  400674:	d503201f 	nop
  400678:	d503201f 	nop
  40067c:	d503201f 	nop

0000000000400680 <exit@plt>:
  400680:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400684:	f9400211 	ldr	x17, [x16]
  400688:	91000210 	add	x16, x16, #0x0
  40068c:	d61f0220 	br	x17

0000000000400690 <perror@plt>:
  400690:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400694:	f9400611 	ldr	x17, [x16, #8]
  400698:	91002210 	add	x16, x16, #0x8
  40069c:	d61f0220 	br	x17

00000000004006a0 <fork@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006a4:	f9400a11 	ldr	x17, [x16, #16]
  4006a8:	91004210 	add	x16, x16, #0x10
  4006ac:	d61f0220 	br	x17

00000000004006b0 <getpid@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006b4:	f9400e11 	ldr	x17, [x16, #24]
  4006b8:	91006210 	add	x16, x16, #0x18
  4006bc:	d61f0220 	br	x17

00000000004006c0 <__libc_start_main@plt>:
  4006c0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006c4:	f9401211 	ldr	x17, [x16, #32]
  4006c8:	91008210 	add	x16, x16, #0x20
  4006cc:	d61f0220 	br	x17

00000000004006d0 <sleep@plt>:
  4006d0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006d4:	f9401611 	ldr	x17, [x16, #40]
  4006d8:	9100a210 	add	x16, x16, #0x28
  4006dc:	d61f0220 	br	x17

00000000004006e0 <__gmon_start__@plt>:
  4006e0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006e4:	f9401a11 	ldr	x17, [x16, #48]
  4006e8:	9100c210 	add	x16, x16, #0x30
  4006ec:	d61f0220 	br	x17

00000000004006f0 <write@plt>:
  4006f0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006f4:	f9401e11 	ldr	x17, [x16, #56]
  4006f8:	9100e210 	add	x16, x16, #0x38
  4006fc:	d61f0220 	br	x17

0000000000400700 <abort@plt>:
  400700:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400704:	f9402211 	ldr	x17, [x16, #64]
  400708:	91010210 	add	x16, x16, #0x40
  40070c:	d61f0220 	br	x17

0000000000400710 <puts@plt>:
  400710:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400714:	f9402611 	ldr	x17, [x16, #72]
  400718:	91012210 	add	x16, x16, #0x48
  40071c:	d61f0220 	br	x17

0000000000400720 <printf@plt>:
  400720:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400724:	f9402a11 	ldr	x17, [x16, #80]
  400728:	91014210 	add	x16, x16, #0x50
  40072c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400730 <_start>:
  400730:	d280001d 	mov	x29, #0x0                   	// #0
  400734:	d280001e 	mov	x30, #0x0                   	// #0
  400738:	aa0003e5 	mov	x5, x0
  40073c:	f94003e1 	ldr	x1, [sp]
  400740:	910023e2 	add	x2, sp, #0x8
  400744:	910003e6 	mov	x6, sp
  400748:	580000c0 	ldr	x0, 400760 <_start+0x30>
  40074c:	580000e3 	ldr	x3, 400768 <_start+0x38>
  400750:	58000104 	ldr	x4, 400770 <_start+0x40>
  400754:	97ffffdb 	bl	4006c0 <__libc_start_main@plt>
  400758:	97ffffea 	bl	400700 <abort@plt>
  40075c:	00000000 	.inst	0x00000000 ; undefined
  400760:	0040082c 	.word	0x0040082c
  400764:	00000000 	.word	0x00000000
  400768:	00400910 	.word	0x00400910
  40076c:	00000000 	.word	0x00000000
  400770:	00400990 	.word	0x00400990
  400774:	00000000 	.word	0x00000000

0000000000400778 <call_weak_fn>:
  400778:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf5f0>
  40077c:	f947f000 	ldr	x0, [x0, #4064]
  400780:	b4000040 	cbz	x0, 400788 <call_weak_fn+0x10>
  400784:	17ffffd7 	b	4006e0 <__gmon_start__@plt>
  400788:	d65f03c0 	ret
  40078c:	00000000 	.inst	0x00000000 ; undefined

0000000000400790 <deregister_tm_clones>:
  400790:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400794:	91022000 	add	x0, x0, #0x88
  400798:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40079c:	91022021 	add	x1, x1, #0x88
  4007a0:	eb00003f 	cmp	x1, x0
  4007a4:	540000a0 	b.eq	4007b8 <deregister_tm_clones+0x28>  // b.none
  4007a8:	90000001 	adrp	x1, 400000 <_init-0x648>
  4007ac:	f944d821 	ldr	x1, [x1, #2480]
  4007b0:	b4000041 	cbz	x1, 4007b8 <deregister_tm_clones+0x28>
  4007b4:	d61f0020 	br	x1
  4007b8:	d65f03c0 	ret
  4007bc:	d503201f 	nop

00000000004007c0 <register_tm_clones>:
  4007c0:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4007c4:	91022000 	add	x0, x0, #0x88
  4007c8:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  4007cc:	91022021 	add	x1, x1, #0x88
  4007d0:	cb000021 	sub	x1, x1, x0
  4007d4:	9343fc21 	asr	x1, x1, #3
  4007d8:	8b41fc21 	add	x1, x1, x1, lsr #63
  4007dc:	9341fc21 	asr	x1, x1, #1
  4007e0:	b40000a1 	cbz	x1, 4007f4 <register_tm_clones+0x34>
  4007e4:	90000002 	adrp	x2, 400000 <_init-0x648>
  4007e8:	f944dc42 	ldr	x2, [x2, #2488]
  4007ec:	b4000042 	cbz	x2, 4007f4 <register_tm_clones+0x34>
  4007f0:	d61f0040 	br	x2
  4007f4:	d65f03c0 	ret

00000000004007f8 <__do_global_dtors_aux>:
  4007f8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007fc:	910003fd 	mov	x29, sp
  400800:	f9000bf3 	str	x19, [sp, #16]
  400804:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  400808:	39420e60 	ldrb	w0, [x19, #131]
  40080c:	35000080 	cbnz	w0, 40081c <__do_global_dtors_aux+0x24>
  400810:	97ffffe0 	bl	400790 <deregister_tm_clones>
  400814:	52800020 	mov	w0, #0x1                   	// #1
  400818:	39020e60 	strb	w0, [x19, #131]
  40081c:	f9400bf3 	ldr	x19, [sp, #16]
  400820:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400824:	d65f03c0 	ret

0000000000400828 <frame_dummy>:
  400828:	17ffffe6 	b	4007c0 <register_tm_clones>

000000000040082c <main>:
  40082c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400830:	910003fd 	mov	x29, sp
  400834:	52800b00 	mov	w0, #0x58                  	// #88
  400838:	b9001fa0 	str	w0, [x29, #28]
  40083c:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400840:	9101c000 	add	x0, x0, #0x70
  400844:	d2800242 	mov	x2, #0x12                  	// #18
  400848:	aa0003e1 	mov	x1, x0
  40084c:	52800020 	mov	w0, #0x1                   	// #1
  400850:	97ffffa8 	bl	4006f0 <write@plt>
  400854:	f100481f 	cmp	x0, #0x12
  400858:	54000080 	b.eq	400868 <main+0x3c>  // b.none
  40085c:	90000000 	adrp	x0, 400000 <_init-0x648>
  400860:	91270000 	add	x0, x0, #0x9c0
  400864:	97ffff8b 	bl	400690 <perror@plt>
  400868:	90000000 	adrp	x0, 400000 <_init-0x648>
  40086c:	91274000 	add	x0, x0, #0x9d0
  400870:	97ffffa8 	bl	400710 <puts@plt>
  400874:	97ffff8b 	bl	4006a0 <fork@plt>
  400878:	b9001ba0 	str	w0, [x29, #24]
  40087c:	b9401ba0 	ldr	w0, [x29, #24]
  400880:	7100001f 	cmp	w0, #0x0
  400884:	540000aa 	b.ge	400898 <main+0x6c>  // b.tcont
  400888:	90000000 	adrp	x0, 400000 <_init-0x648>
  40088c:	91278000 	add	x0, x0, #0x9e0
  400890:	97ffff80 	bl	400690 <perror@plt>
  400894:	14000011 	b	4008d8 <main+0xac>
  400898:	b9401ba0 	ldr	w0, [x29, #24]
  40089c:	7100001f 	cmp	w0, #0x0
  4008a0:	54000181 	b.ne	4008d0 <main+0xa4>  // b.any
  4008a4:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4008a8:	9101a000 	add	x0, x0, #0x68
  4008ac:	b9400000 	ldr	w0, [x0]
  4008b0:	11000401 	add	w1, w0, #0x1
  4008b4:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4008b8:	9101a000 	add	x0, x0, #0x68
  4008bc:	b9000001 	str	w1, [x0]
  4008c0:	b9401fa0 	ldr	w0, [x29, #28]
  4008c4:	11000400 	add	w0, w0, #0x1
  4008c8:	b9001fa0 	str	w0, [x29, #28]
  4008cc:	14000003 	b	4008d8 <main+0xac>
  4008d0:	52800040 	mov	w0, #0x2                   	// #2
  4008d4:	97ffff7f 	bl	4006d0 <sleep@plt>
  4008d8:	97ffff76 	bl	4006b0 <getpid@plt>
  4008dc:	2a0003e4 	mov	w4, w0
  4008e0:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4008e4:	9101a000 	add	x0, x0, #0x68
  4008e8:	b9400001 	ldr	w1, [x0]
  4008ec:	90000000 	adrp	x0, 400000 <_init-0x648>
  4008f0:	9127c000 	add	x0, x0, #0x9f0
  4008f4:	b9401fa3 	ldr	w3, [x29, #28]
  4008f8:	2a0103e2 	mov	w2, w1
  4008fc:	2a0403e1 	mov	w1, w4
  400900:	97ffff88 	bl	400720 <printf@plt>
  400904:	52800000 	mov	w0, #0x0                   	// #0
  400908:	97ffff5e 	bl	400680 <exit@plt>
  40090c:	00000000 	.inst	0x00000000 ; undefined

0000000000400910 <__libc_csu_init>:
  400910:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400914:	910003fd 	mov	x29, sp
  400918:	a901d7f4 	stp	x20, x21, [sp, #24]
  40091c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf5f0>
  400920:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf5f0>
  400924:	91374294 	add	x20, x20, #0xdd0
  400928:	913722b5 	add	x21, x21, #0xdc8
  40092c:	a902dff6 	stp	x22, x23, [sp, #40]
  400930:	cb150294 	sub	x20, x20, x21
  400934:	f9001ff8 	str	x24, [sp, #56]
  400938:	2a0003f6 	mov	w22, w0
  40093c:	aa0103f7 	mov	x23, x1
  400940:	9343fe94 	asr	x20, x20, #3
  400944:	aa0203f8 	mov	x24, x2
  400948:	97ffff40 	bl	400648 <_init>
  40094c:	b4000194 	cbz	x20, 40097c <__libc_csu_init+0x6c>
  400950:	f9000bb3 	str	x19, [x29, #16]
  400954:	d2800013 	mov	x19, #0x0                   	// #0
  400958:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  40095c:	aa1803e2 	mov	x2, x24
  400960:	aa1703e1 	mov	x1, x23
  400964:	2a1603e0 	mov	w0, w22
  400968:	91000673 	add	x19, x19, #0x1
  40096c:	d63f0060 	blr	x3
  400970:	eb13029f 	cmp	x20, x19
  400974:	54ffff21 	b.ne	400958 <__libc_csu_init+0x48>  // b.any
  400978:	f9400bb3 	ldr	x19, [x29, #16]
  40097c:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400980:	a942dff6 	ldp	x22, x23, [sp, #40]
  400984:	f9401ff8 	ldr	x24, [sp, #56]
  400988:	a8c47bfd 	ldp	x29, x30, [sp], #64
  40098c:	d65f03c0 	ret

0000000000400990 <__libc_csu_fini>:
  400990:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400994 <_fini>:
  400994:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400998:	910003fd 	mov	x29, sp
  40099c:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4009a0:	d65f03c0 	ret
